<script setup  name="App">
    import { useGeyaoStore } from './store/index.js';
    
    const counterstate = useGeyaoStore();
    console.log(counterstate);
    console.log(counterstate.name);
    console.log(counterstate.age);
    console.log(counterstate.$state.name);
    console.log(counterstate.$state.age);
    const handleAdd = () => {
        counterstate.age ++
    }
        </script>
        
        <template>
    
       姓名:{{counterstate.name}}-年龄:{{counterstate.age}}
       <button @click="handleAdd">年龄加1</button>
         
       
        </template>
        
        <style scoped>
        
        </style>
        
        
        
        
        